const state = {
  userName: '',
  nickName: '',
  userId: ''
}
const mutations = {
  ADD_USER_DATA: (state, {
    userName,
    nickName,
    userId
  }) => {
    state.userName = userName
    state.nickName = nickName
    state.userId = userId
  },
  CLEAR_USER_DATA: (state) => {
    state.userName = ''
    state.nickName = ''
    state.userId = ''
  }
}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
